<template>
  <div id="app">
    <el-container v-if="pathName != '/login'">
      <ht-header />
      <el-container>
        <index-aslide />
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
    <div v-else>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import HtHeader from './components/HtHeader.vue'
import IndexAslide from './components/IndexAslide.vue'
export default {
  name: 'App',
  data() {
    return {
      pathName: '',
    }
  },
  components: { IndexAslide, HtHeader },
  created() {},
  watch: {
    '$route.path': function(news, old) {
      this.pathName = news
    },
  },
}
</script>

<style lang="scss">
#app {
  min-height: 100vh;
  padding-top: 80px;
}
.el-container {
  min-height: 100vh;
}
</style>
